<%@ page language="java" contentType="text/html; charset=utf-8"	pageEncoding="utf-8" isErrorPage="true"%>

<%@ include file="/WEB-INF/classes/com/witframework/webroot/framework/common/taglibs.jsp"%>
<%@ page import="com.witframework.core.errorhandling.DefaultWARExceptionHandler"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>错误</title>
		<%@ include	file="/WEB-INF/classes/com/witframework/webroot/framework/common/meta.jsp"%>
		<link href="<%=request.getContextPath() %>/webresource/sorter/style.css" type="text/css" rel="stylesheet"/>
		<script language="javascript">
			function back() { history.go(-1);}
		</script>
	</head>
	<body>
		<table style="padding-top: 5px">
			<tr>
				<td style="padding: 0px 0px 3px 0;font-size:18px; color: red">							
					发生错误:	
				</td>				
			</tr>
			<tr>
			<td><div><%
				DefaultWARExceptionHandler exceptionHandler = new DefaultWARExceptionHandler(exception);
				String message=exceptionHandler.getMessage();
			%>
			<br><%=message==null?"出错了！":message+"."%>
			<%
				request.removeAttribute("messages");
				request.removeAttribute("errorMessages");
			%></div></td>
			</tr>
			<tr>
			<td>
			<div>
			<%
			//if(!(exception instanceof com.witframework.core.SerialException))
			//	exception.printStackTrace(new java.io.PrintWriter(out));
			%>			
			</div></td>
			</tr>
		</table>
	</body>
</html>
